CC = /usr/local/arm-2014.05/bin/arm-none-linux-gnueabi-gcc
EXEC1 = odf 
OBJS1 = process_main.o module_orders.o module_alarm.o module_resource.o queue.o crc8.o set_mac_ip.o cf8051_update.o \
			debug-net-printf.o nand_ecc.o serial.o
EXEC2 = runled
OBJS2 = process_led.o

all:$(EXEC1) $(EXEC2)

$(EXEC1):$(OBJS1)
	$(CC) -o $@ $(OBJS1) -lpthread
	cp -a $(EXEC1) ~/nfs/rootfs/etc/rc.d/init.d/

$(EXEC2):$(OBJS2)
	$(CC) -o $@ $(OBJS2)  
	cp -a $(EXEC2) ~/nfs/rootfs/etc/rc.d/init.d/

clean:
	-rm -f $(EXEC1) $(EXEC2) *.elf *.gdb *.o *.c~
